package jp.sourceforge.akjrcp.dropsomething;

import jp.sourceforge.akjrcp.akj_betas.Messages;
import jp.sourceforge.akjrcp.dropsomething.FFMpegConvertTabBuilder.FFMpegConvertTab;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

public class FLVConvertTabBuilder implements IDropSomething{

	private DropsomethingTab dtab;
	private CTabItem tabItem1 ;
	
	public void createControl(final ViewPart part,final CTabFolder tab) {
		if(dtab==null){
			//deley create control
			dtab=new FLVConvertTab(part,tab,SWT.NONE);
			dtab.setViewPart(part);
			tabItem1.setControl(dtab);
		}
	}
	
	public void createTab(ViewPart part,CTabFolder parent) {
		 tabItem1 = new CTabItem(parent, SWT.NONE);
		tabItem1.setText(Messages.getString("FLV_Convert"));
		tabItem1.setControl(new Composite(parent,SWT.NULL));
		
	}

	

}
